package com.silp.baitap1;

public class songuyento {
	
	static int i=1;
	

	/**
	 * @param args
	 */
	/*In ra cac so tu 2 den 50
	 * Neu so do chi chia het cho chinh no thi no la so nguyen to
	 * Neu so do chia het cho no va 1 so khac thi no khong la so nguyen to
	 * 
	 */
	public static void main(String[] args) {


			while(i<=50){
				i++;
				//kiemtra(i);
				if(kiemtra(i)!=0){
					System.out.println(i);
			}

			 
					
			}
			
				
	}
	
	






	private static int kiemtra(int kq) {
		
			
			for (int j = i-1; j >1; j--) {
				if(i%j==0){
					kq = 0;
				}
			}
			return kq;
	}
		
	
}


